package t327.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Contract {

  private Long contractId;
  private Long contractType;
  private String contractNumber;
  private Long orderId;
  private Long clientId;
  private String supplier;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
  private Date contractTime;
  private BigDecimal contractStatus;
  private String contractSrc;
  private String deliveryAddress;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
  private Date deliveryTime;
  private BigDecimal orderMoney;
  private Long contractPay;
}
